Welcome back. This lesson takes us deep into using REST APIs.
First, we'll see how to use
the request module to generate long URLs with query parameters,
and automatically substitute for text characters that aren't permitted in URLs.
Next, I'll show you what to look for in the documentation for REST API.
Third, I'll give you some hints for debugging requests,
when they don't work right the first time,
and we'll conclude by introducing the caching pattern.
It's especially useful when using the request module,
so that you don't run into rate limits or problems of
servers being inaccessible from the Runestone textbook.
At the end of this lesson,
you should be able to read the documentation for a REST API,
extract the key information you need to use the request module to interact with it.
Debug your invocations of request.get,
and understand how our requests with caching module works.
Bye for now. I'll see you at the end.